<?php
/**
 * AD Cincinnati configuration
 *
 * This file is where all the configuration settings
 * for Cincinnati are stored. All items are clearly labeled.
 * @package Configuration
 */

/**
 * Define RETS URL
 */
define('AD_RETS_URL', 'http://rets15lax.raprets.com:6103/CINCYNKY/CIN/login.aspx');

/**
 * Define RETS user agent.
 */
define('AD_RETS_USER_AGENT', 'DDSIVM');

/**
 * Define RETS version number.
 */
define('AD_RETS_VERSION', 'RETS/1.5');

/**
 * Define RETS default search value.
 */
define('AD_RETS_SEARCH', '((MLNumber=0+)');

/**
 * Define RETS search class name.
 */
define('AD_RETS_SEARCH_CLASS',	'RESI');

/**
 * Define RETS maximum search limit.
 */
define('AD_RETS_SEARCH_LIMIT',	200);

/**
 * Define RETS default value for all fields.
 */
define('AD_RETS_ALL_FLDS',	'');

$DISABLED_SEARCH_FORM_FIELDS = array(
	 'year_built'
	,'sqft_above_ground'
);

$MAP_QUERY_PREFIX = array(
	 'bath_rooms'					=> ''
	,'bed_rooms'					=> ''
	,'city'							=> '|'
	,'exterior'						=> '|'
	,'garage'						=> ''
	,'listing_date'					=> ''
	,'listing_price'				=> ''
	,'school_district'				=> '|'
	,'selling_date'					=> ''
	,'selling_price'				=> ''
	,'sqft_above_ground'			=> ''
	,'status'						=> '|'
	,'street_name'					=> '*'
	,'style'						=> '|'
	,'sub_division'					=> '*'
	,'year_built'					=> ''
	,'zip'							=> ''
);

$MAP_QUERY_SUFFIX = array(
	 'bath_rooms'					=> ''
	,'bed_rooms'					=> ''
	,'city'							=> ''
	,'exterior'						=> ''
	,'garage'						=> ''
	,'listing_date'					=> '+'
	,'listing_price'				=> ''
	,'school_district'				=> ''
	,'selling_date'					=> '+'
	,'selling_price'				=> ''
	,'sqft_above_ground'			=> ''
	,'status'						=> ''
	,'street_name'					=> '*'
	,'style'						=> ''
	,'sub_division'					=> '*'
	,'year_built'					=> ''
	,'zip'							=> ''
);

$MAP_LOOKUP_FLD_NAME = array(
	 'list_city'					=> 'city'
	,'list_exterior'				=> 'resicnst'
	,'list_school_district'			=> 'schooldistrict'
	,'list_status'					=> 'status'
	,'list_style'					=> 'resilevl'
//	,'list_basement'				=> 'resibsmt'
//	,'qry_basements'				=> 'resibsmt'
);

$MAP_RESULT_STD_NAME = array(
	 'ad_img_id'					=> 'ml_number'

	,'acres'						=> 'acres'
	,'annual_assessment'			=> 'resianas'
	,'apn'							=> 'apn'
	,'appliances'					=> 'resiappl'
	,'area'							=> 'area'
	,'basement'						=> 'resibsmt'
	,'basement_feat'				=> 'resibsmf'
	,'bath_rooms'					=> 'bathrooms'
	,'bed_rooms'					=> 'bedrooms'
	,'bedroom_2_area'				=> 'bedroom2area'
	,'bedroom_3_area'				=> 'bedroom3area'
	,'bedroom_4_area'				=> 'bedroom4area'
	,'bedroom_5_area'				=> 'bedroom5area'
	,'city'							=> 'city'
	,'comments'						=> 'marketingremarks'
//	,'construction'					=> 'exterior'
	,'cooling'						=> 'resicool'
	,'county'						=> 'county'
	,'dining_room_area'				=> 'diningroomarea'
//	,'directions'					=> 'directions'
	,'exterior'						=> 'resicnst'
	,'fireplaces'					=> 'resifire'
	,'full_bathrooms'				=> 'fullbathrooms'
	,'garage'						=> 'resicars'
	,'garage_description'			=> 'resigarg'
	,'half_bathrooms'				=> 'halfbathrooms'
	,'heating'						=> 'resiheat'
//	,'img_id'						=> 'mlnumber'
	,'kitchen_area'					=> 'kitchenarea'
	,'last_modified_date_time'		=> 'lastmodifieddatetime'
	,'latitude'						=> 'latitude'
//	,'listing_agent_first_name'		=> 'listingagentfirstname'
//	,'listing_agent_last_name'		=> 'listingagentlastname'
	,'listing_date'					=> 'listingdate'
//	,'listing_office_name'			=> 'listingagentofficephone'
	,'listing_price'				=> 'listingprice'
	,'longitude'					=> 'longitude'
	,'lot_dimension'				=> 'resilotd'
	,'master_bedroom_area'			=> 'masterbedroomarea'
	,'ml_number'					=> 'mlnumber'
//	,'other_buildings'				=> ''
	,'picture_count'				=> 'picturecount'
	,'picture_modified_date_time'	=> 'picturemodifieddatetime'
	,'property_type'				=> 'propertytype'
	,'school_district'				=> 'schooldistrict'
//	,'selling_agent_first_name'		=> 'sellingagentfirstname'
//	,'selling_agent_last_name'		=> 'sellingagentlastname'
	,'selling_date'					=> 'sellingdate'
	,'selling_price'				=> 'sellingprice'
//	,'sewer'						=> 'sewer'
//	,'sqft_above_ground'			=> ''
//	,'sqft_below_ground'			=> ''
	,'state'						=> 'state'
	,'status'						=> 'status'
	,'status_date'					=> 'statusdate'
	,'street_direction'				=> 'streetdirection'
	,'street_name'					=> 'streetname'
	,'street_number'				=> 'streetnumber'
	,'street_post_direction'		=> 'streetpostdirection'
	,'street_suffix'				=> 'streetsuffix'
	,'style'						=> 'resilevl'
	,'sub_division'					=> 'resisubd'
//	,'three_quarter_bathrooms'		=> 'threequarterbathrooms'
//	,'unit_number'					=> 'unitnumber'
	,'view'							=> 'resiview'
	,'water'						=> 'resiwats'
	,'year_built'					=> 'age'
	,'zip'							=> 'zipcode'
	,'zoning'						=> 'resizone'
);
